<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.selectWidth2{
   width:205px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">基本信息</div>
<table class="table01 t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td  width="135" align="right"><span class="color_red">*</span>项目名称：</td>
		<td  colspan="5">
			<input id="zh_title" name="proposal/zh_title" label="项目名称" type="text" required class="input_css required maxlength:50"  style="width: 680px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right">项目类别：</td>
		<td  colspan="5">
		    <!--<x:out select="$xmlData/data/proposal/sub_grant_name" /> -->
			<x:out select="$xmlData/data/proposal/grant_name" />
		</td> 
		
	</tr>
	<tr>
	    <td  align="right"><span class="color_red">*</span>申报日期：</td>
		<td >
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
		<td  align="right"><span class="color_red">*</span>开始日期：</td>
		<td >
			<c:set var="start_date"><x:out select="$xmlData/data/proposal/start_date" /></c:set>
			<cpt:date id="start_date" name="proposal/start_date" value="${start_date}" className="required date  dateCompare:end_date" label="项目开始日期" ></cpt:date> 
		</td>
		<td  align="right"><span class="color_red">*</span>结束日期：</td>
		<td  >
			<c:set var="end_date"><x:out select="$xmlData/data/proposal/end_date" /></c:set>
			<cpt:date id="end_date" name="proposal/end_date" className="required date" label="项目结束日期"  value="${end_date}" ></cpt:date> 
		</td>
	</tr>

	<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
		<tr>
		<td  align="right">项目负责人：</td>
		<td  >
		<input type="hidden" id="submit_psn" name="zh_persons/zh_person[0]@submit_psn" value="1" />
		<span name="zh_persons/zh_person[0]/basic_info/zh_name"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
					<span id="personSelect">
					<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置">
					<cpt:personSelect key="personSelect" addRole="3" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="项目核心人员" fltFile="personSelector.ftl"></cpt:personSelect>
					</span>
		</security:authorize>
		</td>
		<td  align="right">联系电话：</td>
		<td  >
		<span name="zh_persons/zh_person[0]/contact/tel_work"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">支持方式：</td>
		<td  >
		<c:set var="sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></c:set>
			<span name="proposal/sponsor_category">
			<c:choose>
			<c:when test="${sponsor_category =='W'}">
			无偿资助
			</c:when>
			<c:when test="${sponsor_category =='Z'}">
			政府奖励
			</c:when>
			<c:when test="${sponsor_category =='D'}">
			贷款贴息
			</c:when>
			<c:when test="${sponsor_category =='F'}">
			风险补偿
			</c:when>
			<c:when test="${sponsor_category =='G'}">
			股权投资
			</c:when>
			<c:otherwise>${sponsor_category }</c:otherwise>
			</c:choose>
			
			</span> 
		</td>
		<%-- <td  align="right"><span class="color_red">*</span>申请资助依据条款：</td>
		<td  colspan="5">
		<input  name="proposal/provision" label="申请资助依据条款" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/provision" />"/>
		</td> --%>
	</tr>
	<tr>
		
		<td  align="right"><span class="color_red">*</span>项目核准或备案文号：</td>
		<td  >
			<input  name="proposal/project_approval" label="项目核准或备案文号" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/project_approval" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>资金级次：</td>
		<td  >
<%-- 			<input  name="proposal/fund_level" label="资金级次" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/fund_level" />"/> 
 --%>			<span name="proposal/fund_level">市级</span>
		</td>
		 <td  align="right">管理类别：</td>
		<td  >
		<c:set var="manage_category"><x:out select="$xmlData/data/proposal/manage_category" /></c:set>
		<span name="proposal/manage_category">
		<c:choose>
		<c:when test="${manage_category == 'P' }">评审类</c:when>
		<c:when test="${manage_category == 'H' }">核准类</c:when>
		<c:otherwise>${manage_category}</c:otherwise>
		</c:choose>
		</span>
		</td>
	</tr>
	<tr>
	   
		<td  align="right"><span class="color_red">*</span>归口管理部门：</td>
		<td  >
			<%-- <input  name="proposal/org_name" label="归口管理部门" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/org_name" />"/> --%>
			<span name="proposal/org_name">无锡市文化广电新闻出版局</span> 
		</td>
		<td  align="right"><span class="color_red">*</span>项目所属产业：</td>
		<td  >
			<input  name="proposal/prj_industry" label="项目所属产业" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/prj_industry" />"/> 
		</td>
		<td  align="right">功能分类：</td>
		<td  >
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
	</tr>
	<tr>
	<td colspan="6" class="t_bar"><span class="color_red">*</span>申请资助依据条款（限300字）
	</tr>
	 <tr>
		<td colspan="6">
			<textarea name="proposal/provision" rows=7 cols=150  label="申请资助依据条款"  class="textarea required maxlength:300"><x:out select="$xmlData/data/proposal/provision" /></textarea>
		    <input type="hidden" name="proposal/provision_hidden" id="proposal/provision_hidden" value="<x:out select="$xmlData/data/proposal/provision_hidden" />"/>
		</td>
	</tr> 
	
	<tr>
	<td colspan="6" class="t_bar"><span class="color_red">*</span>项目概述：简要概括项目可行性、创新性、发展前景以及预期对行业带动作用、社会经济发展的贡献（限300字）
	</tr>
	 <tr>
		<td colspan="6">
			<textarea id="brief" name="proposal/summary" rows=7 cols=150  label="项目概述"  class="textarea required maxlength:300"><x:out select="$xmlData/data/proposal/summary" /></textarea>
		    <input type="hidden" name="proposal/summary_hidden" id="proposal/summary_hidden" value="<x:out select="$xmlData/data/proposal/summary_hidden" />"/>
		</td>
	</tr> 
</table>
<script type="text/javascript">
	$(function() {
		$("#basicInfo tr:even").addClass("li_1");
		$("#basicInfo tr:odd").addClass("li_2");
	});
	
	function selectPsnCall(data) {
		$("input[name$='psn_code']").val(data.person.psnCode);
		$("span[name$='zh_name']").text(data.person.zhName);
		$("span[name$='tel_work']").text(data.personExtend.contact.mobile);
		tb_remove2();
	}
 </script>
	

